package com.wanczy.serviceImpl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.wanczy.mapper.ShowFavoriteMapper;
import com.wanczy.pojo.ShowFavorite;
import com.wanczy.service.ShowFavoriteService;
@Service
public class ShowFavoriteImpl implements ShowFavoriteService{
    @Autowired
    private ShowFavoriteMapper showFavoriteMapper;

	@Override
	public List<ShowFavorite> getShowFavorite(Integer userId) {
		List<ShowFavorite> list = showFavoriteMapper.getShowFavorite(userId);
		return list;
	}

	@Override
	public int getDelfavorite(Integer favoriteId) {
		int favorite  = showFavoriteMapper.getDelfavorite(favoriteId);
		return favorite;
	}
	
	

}
